﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucBanner.ascx.cs" Inherits="TTMarketing.CameraUserControl.Banner.ucBanner" %>
 <style type="text/css">
        .itemTemplate
        {
            width: 960px;
            height: 155px;
        }
       
    </style>
<telerik:RadRotator runat="server" DataSourceID="odsHinhAnh" ID="rotator1" ScrollDirection="Up"
            FrameDuration="2000" Width="960px" ItemWidth="960px" 
    Height="155px" ItemHeight="180px">
            <ItemTemplate>
                <div class="itemTemplate">
                    &nbsp;<asp:Image ID="Image1" runat="server" Width="960px" Height="155px" style="margin-top:-15px;" 
                        ImageUrl='<%# Eval("Name", "~/Image/Upload/{0}") %>' />
                </div>
            </ItemTemplate>
        </telerik:RadRotator>
        <asp:XmlDataSource ID="xmlDataSource1" runat="server" DataFile="http://demos.telerik.com/aspnet-ajax/rotator/examples/bannerrotation/Banners.xml"></asp:XmlDataSource>
            <asp:ObjectDataSource ID="odsHinhAnh" runat="server" SelectMethod="getByTypeId" 
                TypeName="TTBusiness.ClassDB.clsBSImage">
                <SelectParameters>
                    <asp:Parameter DefaultValue="6" Name="typeId" Type="Int32" />
                </SelectParameters>
            </asp:ObjectDataSource>
